package io.dshubs.archives.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dshubs.commons.mybatis.entity.BaseTenantEntity;
import io.dshubs.commons.tools.utils.DateUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 档案鉴定表
 * </p>
 *
 * @author tan
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("archive_appraisal")
public class ArchiveAppraisal extends BaseTenantEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 题名
     */
    @TableField("appraisal_title")
    private String appraisalTitle;

    /**
     * 档号
     */
    @TableField("file_number")
    private String fileNumber;

    /**
     * 文件分类id
     */
    @TableField("category_id")
    private Long categoryId;

    /**
     * 鉴定类型
     */
    @TableField("type")
    private String type;

    /**
     * 鉴定结果
     */
    @TableField("result")
    private String result;

    /**
     * 0 已鉴定 1 待鉴定
     */
    @TableField("state")
    private String state;

    /**
     * 鉴定时间
     */
    @TableField("appraisal_date")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date appraisalDate;

    /**
     * 鉴定人
     */
    @TableField("appraisal_person")
    private String appraisalPerson;

    /**
     * 删除标识  0：未删除    1：删除
     */
    @TableField("del_flag")
    private Integer delFlag;

    /**
     * 更新者
     */
    @TableField("updater")
    private Long updater;

    @TableField("remark")
    private String remark;

    @TableField("identification_material")
    private String identificationMaterial;
    /**
     * 更新时间
     */
    @TableField("update_date")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateDate;

    @TableField(exist = false)
    private String categoryName;

    @TableField(exist = false)
    private String appraisalDateBegin;


    @TableField(exist = false)
    private String appraisalDateEnd;

    /**
     * 档号
     */
    @TableField(exist = false)
    private List<String> fileNumberList;

    @TableField(exist = false)
    private List<String> ids;
}
